package com.Twelve;

public class UsageScenario {
    volatile boolean shutdownnRequested;

    public void shutdown() {
        shutdownnRequested = true;
    }

    public void doWork() {
        while (!shutdownnRequested) {
            // do stuff
        }
    }
}
